

/**
 * @(#)Inventory.java
 *
 *
 * @author
 * @version 1.00 2009/8/20
 */
import java.io.*;

public class Inventory implements Ingredients {
    private int invOnHand;	// store number of current avaible bottles
    private String nameProduct;

    public Inventory() {
        nameProduct = "";
        invOnHand = 0;
    }
	/* constructor */
    public Inventory(String name) {
    	nameProduct = name;
//    	calculate = c;
    }

    public void setNameProduct(String name) {
        nameProduct = name;
    }

    /* get inventory's name */
    public String getNameProduct() {
    	return nameProduct;
    }

    /* order inventory */
    public void setInvOnHand(int num) {
    	invOnHand = invOnHand + num;
    }

    /* deduct inventory on hand after using */
    public void countInv(int used) {
    	invOnHand = invOnHand - used;
    }

    /* get current avaible bottles */
    public int getInvOnHand() {
    	return invOnHand;
    }


}